package com.community.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.common.pojo.domain.Visitor;
import com.community.common.pojo.dto.VisitorApplyDto;
import com.community.common.pojo.dto.VisitorCondition;
import com.community.common.pojo.vo.VisitorVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 访客记录表 Mapper 接口
 * </p>
 *
 * @author superman
 * @since 2020-08-02
 */
public interface VisitorMapper extends BaseMapper<Visitor> {

    List<VisitorVo> queryByPage(@Param("condition") VisitorCondition condition,@Param("communityId") String communityId);

    List<VisitorVo> ownerVisitedHistory(VisitorApplyDto ownerOpenId);

    List<VisitorVo> ownerCheckPending(VisitorApplyDto visitorApplyDto);
}
